<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #d1{
            width: 300px;
            height: 100px;
            border: 1px red dashed;
        }
        #d2{
            width: 280px;
            height: 100px;
            border: 1px red dashed;
            margin-top: 20px;margin-left: 20px;
            padding: 20px;
        }
        #d3{
            width: 300px;
            height: 100px;
            border: 1px red dashed;
            margin-left: 40px;margin-top: 20px;
        }
        #d4{
            width: 300px;
            height: 100px;
            border: 1px red dashed;
            margin: auto;
        }
        #d5{
            width: 300px;
            height: 100px;
            border: 1px red dashed;
        }
    </style>
</head>
<body>
    <div id="d1">喜羊羊</div>
    <div id="d2">懒洋洋</div>
    <div id="d3">美羊羊</div>
    <div id="d4">沸羊羊</div>
    <div id="d5">暖羊羊</div>
</body>
</html>